package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 网络培训积分
 * </p>
 *
 * @author jondai
 * @since 2017-12-27
 */
@TableName("network_train_rule")
public class NetworkTrainRule extends Model<NetworkTrainRule> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
	@TableId(value="id", type= IdType.UUID)
	private String id;
    /**
     * 开始学时
     */
	@TableField("start_hours")
	private Integer startHours;
    /**
     * 结束学时
     */
	@TableField("end_hours")
	private Integer endHours;

	/**
	 * 学分
	 */
	private Double credit;
    /**
     * 积分上限
     */
	@TableField("upper_limit")
	private Double upperLimit;
    /**
     * 状态
     */
	private Integer state;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getStartHours() {
		return startHours;
	}

	public void setStartHours(Integer startHours) {
		this.startHours = startHours;
	}

	public Integer getEndHours() {
		return endHours;
	}

	public void setEndHours(Integer endHours) {
		this.endHours = endHours;
	}

	public Double getUpperLimit() {
		return upperLimit;
	}

	public void setUpperLimit(Double upperLimit) {
		this.upperLimit = upperLimit;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Double getCredit() {
		return credit;
	}

	public void setCredit(Double credit) {
		this.credit = credit;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "NetworkTrainRule{" +
			"id=" + id +
			", startHours=" + startHours +
			", endHours=" + endHours +
			", upperLimit=" + upperLimit +
			", state=" + state +
			"}";
	}
}
